<?xml version="1.0"?>
<component name="org.nuxeo.ecm.user.center.action.widgets.override">

  <require>org.nuxeo.ecm.user.center.action.widgets</require>

  <documentation>

    @since 6.0, global widgets used to render actions/tabs
    in Home.
  

  </documentation>
  <extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="homeTabs" type="tabs">
      <properties mode="view">
        <property name="actionsDisplay">links</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">#{useAjaxTabs}</property>
        <property name="category">USER_CENTER</property>
        <property name="actions">#{userCenterViews.availableActions}</property>
        <property name="currentTabAction">#{userCenterViews.currentView}</property>
        <property name="overallDisplay">vertical_block</property>
      </properties>
    </widget>

    <widget name="userCenterSubTabs" type="tabs">
      <properties mode="view">
        <property name="actionsDisplay">links</property>
        <property name="addForm">true</property>
        <property name="useAjaxForm">#{useAjaxTabs}</property>
        <property name="actions">
          #{userCenterViews.availableSubActions}
        </property>
        <property name="currentTabAction">#{userCenterViews.currentSubView}</property>
        <property name="hideSingleTab">
          #{not
          currentUserCenterView.properties.alwaysDisplaySubTabs}
        </property>
      </properties>
    </widget>

  </extension>

</component>
